package com.wlyuan.index.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.wlyuan.tools.fastjson.BigDecimalFormatter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author yuanjie
 */
@Data
public class CombineIndexSumVO implements Serializable {
    // FIXME: 结果不生效
    @ApiModelProperty("总体积")
    @JSONField(serializeUsing = BigDecimalFormatter.class)
    private BigDecimal totalVolume;
    @ApiModelProperty("总重量")
    @JSONField(serializeUsing = BigDecimalFormatter.class)
    private BigDecimal totalWeight;
    @ApiModelProperty("总物品数")
    private Integer totalQuantity;
    @ApiModelProperty("总价值")
    @JSONField(serializeUsing = BigDecimalFormatter.class)
    private BigDecimal totalValue;
    @ApiModelProperty("总费用")
    @JSONField(serializeUsing = BigDecimalFormatter.class)
    private BigDecimal totalFee;
    @ApiModelProperty("记录数")
    private Integer size;
}